<html>
<head>
    <th:block th:include="include :: headermain('添加会员')"/>
</head>
<body>
<div class="page-tab-content" style="display: block;padding-top:10px;padding-left:20px;">
    <form id="hzxh_cwmia_person_add_form" method="post">
        <input type="hidden" name="policyInsuranceId" value="${hzPolicyInsurance.id}" />
        <div class="page-form-item">
            <div class="page-form-label">职工姓名：</div>
            <div class="page-form-input">
                <input type="text" style="width:260px" name="name"  />
            </div>
        </div>
        <div class="page-form-item">
            <div class="page-form-label">职工性别：</div>
            <div class="page-form-input">
                <select class="easyui-combotree" style="width:300px;" name="sex">
                    <option value="男">男</option>
                    <option value="女">女</option>
                    <option value="0">保密</option>
                </select>
            </div>
        </div>
        <div class="page-form-item">
            <div class="page-form-label">证件类型：</div>
            <div class="page-form-input">
                <%-- <c:if test="${hzPolicyInsurance.policyType == 1}">
                <select class="easyui-combotree" style="width:300px;" name="cardType" var="1">
            </c:if>
                <c:if test="${hzPolicyInsurance.policyType == 2}">
                    <select class="easyui-combotree" style="width:300px;" name="cardType" var="6">
                </c:if> --%>
                <select class="easyui-combotree" style="width:300px;" name="cardType">
                    <option value="1">身份证</option>
                    <!-- <option value="2">军官证</option>
                    <option value="3">护照</option>
                    <option value="4">台胞证</option>
                    <option value="5">香港身份证</option> -->
                    <option value="6">涉密编码</option>
                    <!-- <option value="0">其它</option> -->
                </select>
            </div>
        </div>
        <div class="page-form-item">
            <div class="page-form-label">证件号码：</div>
            <div class="page-form-input">
                <input type="text" style="width:260px" name="idCard"  />
            </div>
        </div>
        <!-- <div class="page-form-item">
            <div class="page-form-label">职工生日：</div>
            <div class="page-form-input">
                <input type="text" style="width:260px" name="birthday"  />
            </div>
        </div> -->
        <div class="page-form-item">
            <div class="page-form-label">联系手机：</div>
            <div class="page-form-input">
                <input type="text" style="width:260px" name="mobile"  />
            </div>
        </div>
        <div class="page-form-item">
            <div class="page-form-label">联系邮箱：</div>
            <div class="page-form-input">
                <input type="text" style="width:260px" name="email"  />
            </div>
        </div>
        <div class="page-form-item">
            <div class="page-form-label">是否高级或处级以上干部：</div>
            <div class="page-form-input">
                <select class="easyui-combotree" style="width:300px;" name="isSenior">
                    <option value="0">否</option>
                    <option value="1">是</option>
                </select>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">

    //确定按钮
    $(document).on('click', '.layui-layer-btn0', function(e){
        var idx = layer.load(0);
        $.soon.ajax({
            url: "/hzpolicy/hzPolicyFront/savePolicyPerson",
            data: $("#hzxh_cwmia_person_add_form").serialize(),
            success: function (data) {
                layer.close(idx);
                if (data.success) {
                    layer.msg("提交成功");
                    setTimeout(function () {
                        window.location.reload();
                    }, 1000);
                } else {
                    layer.msg(data.msg);
                }
            }
        });
    });

</script>
</body>
</html>